<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>5.v-cloak</title>
    <style>
      [v-cloak] {
        display: none;
      }
    </style>
  </head>
  <body>
    <div id="demo" v-cloak>
      <h1>{{str}}</h1>
      <h1>当前的n值是：{{n}}</h1>
      <button @click="n+=1">点我n+1</button>
    </div>

    <script type="text/javascript" src="../../js/vue.js"></script>

    <script type="text/javascript" >
      new Vue({
        el:'#demo',
        data:{
          str:'你好，欢迎光临红浪漫',
          n:1
        }
      })
    </script>
    
  </body>
</html>